package top.continew.admin.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @description:
 * @author: jiangjun
 * @date: 2025/2/25 15:55
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "cloud-sms-config")
@NoArgsConstructor
@AllArgsConstructor
public class CloudSmsConfig {

    /**
     * 腾讯云
     */
    private Config tencentConfig;

    /**
     * 移动云
     */
    private Config ecloudConfig;

    /**
     * 阿里云
     */
    private Config aliyunConfig;

    @Data
    public static class Config {

        private String endpoint;

        private String secretId;

        private String secretKey;

        /**
         * 地域信息
         */
        private String region;

        /**
         * 短信应用ID
         */
        private String appId;


        /**
         * 短信签名
         */
        private String signName;
    }
}
